// 后台管理路由
import System from '@/pages/system/'

// 用户管理路由
import SystemUser from '@/pages/system/user/index'

// 用户角色路由
import SystemRole from '@/pages/system/role/index'

// 用户权限路由
import SystemScope from '@/pages/system/scope/index'

const systemRoutes = {
  name: 'system',
  path: '/system',
  component: System,
  children: [
    {
      path: 'user',
      component: SystemUser,
      meta: {
        // requiresrole: [1], // 规定访问的权限账号
        requiresAuth: true
      },
    },
    {
      path: 'role',
      component: SystemRole,
      meta: {
        // requiresrole: [1], // 规定访问的权限账号
        requiresAuth: true
      },
    },
    {
      path: 'scope',
      component: SystemScope,
      meta: {
        // requiresrole: [1], // 规定访问的权限账号
        requiresAuth: true
      },
    }
  ]
}

export default systemRoutes
